/**
 * 
 */
package org.dragonfire.dasm.directives;

import java.util.ArrayList;

import org.dragonfire.dasm.Command;
import org.dragonfire.dasm.Listing;
import org.dragonfire.dasm.DirectiveManager.Directive;

/**
 * Exits the current module<br />
 * <br />
 * Format:<br />
 * <code>#ENDMODULE</code><br />
 * <br />
 * Parameters:<br />
 * <i>None</i><br />
 * <br />
 * Errors:<br />
 * <i>None</i>
 * 
 * @author Darth Android
 * @see org.dragonfire.dasm.preprocessor.Preprocessor#leaveModule()
 * @see org.dragonfire.dasm.directives.Module
 * @version 2.0
 */
public class Endmodule extends Directive {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public ArrayList<Listing> pass1(Command c) {
		getPreprocessor().leaveModule();
		return null;
	}
}
